Minimum Rectilinear Polygons for Given Angle Sequences
نویسندگان
چکیده
In this paper, we consider the problem of computing, for a given rectilinear angle sequence, a “small” rectilinear polygon. A rectilinear angle sequence S is a sequence of left (90◦) turns and right (270◦) turns, that is, S = (s1, . . . , sn) ∈ {L, R}, where n is the length of S. As we consider only rectilinear angle sequences, we usually drop the term “rectilinear.” A polygon P realizes an angle sequence S if there is a counterclockwise walk along the interior boundary of P such that the turns at the vertices of P occur in the same order as in S. In order to measure the size of a polygon, we only consider polygons that lie on the integer grid. Then, the area of a polygon P corresponds to the number of grid cells that lie in the interior of P . The bounding box of P is the smallest axis-parallel enclosing rectangle of P . The perimeter of P is the sum of the lengths of the edges of P . The task is, for a given angle sequence S, to find a polygon that realizes S and minimizes (i) (the area of) its bounding box, (ii) its area, or (iii) its perimeter. Fig. 1 shows that, in general, the three criteria cannot be minimized simultaneously. Obviously, the angle sequence of a polygon is unique (up to rotation), but the number of polygons that realize a given angle sequence is unbounded. The formula for the angle sum of a polygon implies that, in any angle sequence, # L = # R+4, where # counts the numbers of L and R symbols. Bae et al. [1] considered, for a given angle sequence S, the polygon P (S) that realizes S and minimizes its area. They studied the following question: Given a length n, find the angle sequence S such that the area of P (S) is minimized (δ(n)) or maximized (∆(n)). They proved that δ(n) ∈ {n/2−1;n/2} and ∆(n) = (n−2)(n+4)/8. In graph drawing, the standard approach to drawing a graph of maximum degree 4 orthogonally (that is, with rectilinear edges) is the topology–shape–metrics approach of Tamassia [4]: (1) Compute a planar(ized) embedding; (2) compute an orthogonal representation, that is, an angle sequence for each edge and an angle for each vertex; (3) compact the graph, that is, draw it inside a bounding box of minimum area. Step (3) has been shown to be NP-complete by Patrignani [3]. Note that an orthogonal representation computed in step (2) is essentially an angle sequence for each face of the planarized embedding, so our problem corresponds to step (3) in the special case that the input graph is a simple cycle.
منابع مشابه
Complexity of the minimum-length corridor problem
We study the Minimum-Length Corridor (MLC) problem. Given a rectangular boundary partitioned into rectilinear polygons, the objective is to find a corridor of least total length. A corridor is a set of line segments each of which must lie along the line segments that form the rectangular boundary and/or the boundary of the rectilinear polygons. The corridor is a tree, and must include at least ...
متن کاملExtending Rectangle Join Algorithms for Rectilinear Polygons
Spatial joins are very important but costly operations in spatial databases. A typical evaluation strategy of spatial joins is to perform the join on approximations of spatial objects and then evaluate the join of the real objects based on the results. The common approximation is the minimum bounding rectangle. Minimum bounding rectangles are coarse approximations of spatial objects and may cau...
متن کاملComputing Partitions of Rectilinear Polygons with Minimum Stabbing Number
The stabbing number of a partition of a rectilinear polygon P into rectangles is the maximum number of rectangles stabbed by any axis-parallel line segment contained in P . We consider the problem of finding a rectangular partition with minimum stabbing number for a given rectilinear polygon P . First, we impose a conforming constraint on partitions: every vertex of every rectangle in the parti...
متن کاملMinimum rectangular partition problem for simple rectilinear polygons
In this paper, an O ( n log log n ) algorithm is proposed for minimally rectangular partitioning a simple rectilinear polygon. For any simple rectilinear polygon P , a vertex-edge visible pair is a vertex and an edge that can be connected by a horizontal or vertical line segment that lies entirely inside P . We show that, if the vertex-edge visible pairs are found, the maximum matching and the ...
متن کاملLinear-Time Algorithms for Rectilinear Hole-free Proportional Contact Representations
A proportional contact representation of a planar graph is one where each vertex is represented by a simple polygon with area proportional to a given weight and adjacencies between polygons represent edges between the corresponding pairs of vertices. In this paper we study proportional contact representations that use only rectilinear polygons and contain no unused area or hole. There is an alg...
متن کامل